//
//  WaterLogoViewController.m
//  BaseTools
//
//  Created by 李挺哲 on 15/12/7.
//  Copyright © 2015年 ltz. All rights reserved.
//

#import "WaterLogoViewController.h"
#import "UIImage+UIImage_WaterLogo.h"
@interface WaterLogoViewController ()

@end

@implementation WaterLogoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self initNavigationTitle:@"水印图片" barTintColor:0x1E86CB titleColor:0xFFFFFF isTranslucent:NO isHidden:NO];
    [self showNavigationLeftButtonTitle:@"返回" tintColor:0xFFFFFF];
    
    UIImage *orignImage=[UIImage imageNamed:@"image"];
    UIImage *withTitleImage=[orignImage imageWithStringWaterMark:@"hello" atPoint:CGPointMake(100, 100) color:[UIColor redColor] font:[UIFont fontWithName:@"ArialRoundedMTBold" size:30.0f] ];
    _imageView1.image=withTitleImage;
    
    UIImage *withWaterImage=[orignImage imageWithWaterMask:[UIImage imageNamed:@"ghost"] inRect:CGRectMake(100, 100, 200, 200)];
    
    _imageView2.image=withWaterImage;
    
    UIImage *transpentImage=[orignImage imageWithTransImage:orignImage addtransparentImage:[UIImage imageNamed:@"ghost"]];
    
    _imageView3.image=transpentImage;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
